from django.db import models


# Create your models here.
class BookType(models.Model):
    book_type_id = models.AutoField(primary_key=True, verbose_name='ID')
    book_type_name = models.CharField(max_length=100, default='', verbose_name='名称')
    borrow_days = models.IntegerField(default=0, verbose_name='可借天数')
    create_time = models.DateTimeField(auto_now_add=True, verbose_name='创建时间')
    update_time = models.DateTimeField(auto_now=True, verbose_name='更新时间')

    class Meta:
        db_table = 't_book_type'
        verbose_name = '图书类别'
        verbose_name_plural = verbose_name
